package com.sugou.dao.support.bean;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;

import com.sugou.dao.enums.ResultType;
import com.sugou.dao.support.SearchResultInfo;

public class ResultList<E extends Serializable> extends ArrayList<E> implements SearchResultInfo<E> {
	private static final long serialVersionUID = -5867787831490382490L;

	public ResultList(Collection<? extends E> c) {
		super(c);
	}

	public ResultList(int initialCapacity) {
		super(initialCapacity);
	}

	public ResultList(){
	}

	public boolean success() {
		return true;
	}

	public ResultType getType() {
		return ResultType.SEARCH;
	}


	public int getTotal() {
		return this.size();
	}

	public int getCount() {
		return this.size();
	}
}
